

<?php
$conn=odbc_connect('SourceDb','','');
$sql="select * from message";
$exec = odbc_exec($conn, $sql); 
odbc_result_all($exec,"border=1"); 
odbc_free_result($exec); 
odbc_close($conn); 
?> 
